package com.vdong.trade.trading.service.impl;

import com.baidu.disconf.client.common.annotations.DisconfUpdateService;
import com.baidu.disconf.client.common.update.IDisconfUpdate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhoulongbiao
 * @Date 2018/12/10 9:22
 */
@Component
@DisconfUpdateService(classes = {TradeDynamicPropertyService.class}, itemKeys = {"password"})
public class DisconfTestServiceUpdateCallback implements IDisconfUpdate {

    private static Logger log = LoggerFactory.getLogger(DisconfTestServiceUpdateCallback.class);

    @Autowired
    private TradeDynamicPropertyService tradeDynamicPropertyService;

    @Override
    public void reload() throws Exception {
        log.info("UserServiceUpdateCallback重新加载的信息为：" + tradeDynamicPropertyService.toString());
    }
}
